package cn.com.dhcc.adam.spring.dependency;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.com.dhcc.adam.spring.Service;

public class DependTest {

	public static void main(String[] args) {
		test1();
	}
	public static void test1(){
		@SuppressWarnings("resource")
		ApplicationContext context =
				new ClassPathXmlApplicationContext(new String[] {"springcontainer/services2.xml"});
		Service srv = context.getBean("srvInitByConstructor", Service.class);
		System.out.println(srv.formatedInfo());
	}
}

